import request from '../utils/request';
import url from '../utils/url';


export function msgList(params) {
    return request(url.msgList, {
        method: 'POST',
        params
    })

}

export function createInfo(params) {
    return request(url.createInfo, {
        method: 'POST',
        params
    })

}
export function delMessage(params) {
    return request(url.delMessage, {
        method: 'POST',
        params
    })

}

export function chatRecordList(params) {
    return request(url.chatRecordList, {
        method: 'POST',
        params
    })

}
export function changeChatRecordStatus(params) {
    return request(url.changeChatRecordStatus, {
        method: 'POST',
        params
    })

}

export function offlineMsgList(params) {
    return request(url.offlineMsgList, {
        method: 'POST',
        params
    })

}

export function addOfflineMsg(params) {
    return request(url.addOfflineMsg, {
        method: 'POST',
        params
    })

}

export function filterData() {
    return request(url.filterData, {
        method: 'POST'
    })

}
export function updateFilterData(params) {
    return request(url.updateFilterData, {
        method: 'POST',
        params
    })

}

export function spreadList() {
    return request(url.scaleList, {
        method: 'POST'
    })

}

export function spreadUpdate(params) {
    return request(url.scaleUpdate, {
        method: 'POST',
        params
    })

}